package com.example.springmysqldemo.service;

import com.example.springmysqldemo.dao.BookDao;
import com.example.springmysqldemo.dao.UserDao;
import com.example.springmysqldemo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {
    @Autowired
    private UserDao userDao;
    public List<User> findAllUsers(){
        return userDao.findAllUsers();
    }
    public User UserInfo(String username,String password){
        return userDao.getUserInfo(username,password);
    }
}
